import request from '@/utils/request'

export const department = () => {
  return request({
    url: '/company/department'
  })
}

export const departmentID = id => request({
  url: `/company/department/${id}`,
  method: 'delete'
})

export const datedepartment = (data) => request({
  url: `/company/department/${data.id}`,
  method: 'PUT',
  data
})
